|
Foxit PDF SDK
|
继承自 FoxitPDFSDKPython3._object .
Public 成员函数 | |
| def | HeaderFooter (font, text_size, text_color, page_range, page_margin, has_text_shrinked, has_fixedsize_for_print, start_page_number, content, is_to_embed_font, is_underline) |
| Constructor, with parameters. 更多... | |
| def | HeaderFooter () |
| Constructor. | |
| def | HeaderFooter (other) |
| 用另一个页眉页脚对象的构造函数。 更多... | |
| def | Set (font, text_size, text_color, page_range, page_margin, has_text_shrinked, has_fixedsize_for_print, start_page_number, content, is_to_embed_font, is_underline) |
| 设置值。 更多... | |
静态 Public 属性 | |
| content = _fsdk.HeaderFooter_content | |
| 页眉页脚内容。 | |
| font = _fsdk.HeaderFooter_font | |
| 期望用于页眉页脚内容的有效字体对象。 更多... | |
| has_fixedsize_for_print = _fsdk.HeaderFooter_has_fixedsize_for_print | |
| 决定是否为打印使用固定大小的布尔值。 | |
| has_text_shrinked = _fsdk.HeaderFooter_has_text_shrinked | |
| 决定是否缩小文本的布尔值。 | |
| is_replace_font = _fsdk.HeaderFooter_is_replace_font | |
| (保留)决定是否替换字体的布尔值。目前 Foxit PDF SDK 始终将此值设为 true。 | |
| is_to_embed_font = _fsdk.HeaderFooter_is_to_embed_font | |
| 决定是否嵌入字体的布尔值。 | |
| is_underline = _fsdk.HeaderFooter_is_underline | |
| 决定是否给文本加下划线的布尔值。 | |
| page_margin = _fsdk.HeaderFooter_page_margin | |
| 指定页眉页脚内容位置的页边距。 如果用户未设置边距值,Foxit PDF SDK 将使用定义为 (72.0, 36.0, 72.0, 36.0) 的边距作为默认值。 更多... | |
| page_range = _fsdk.HeaderFooter_page_range | |
| 指定当前页眉页脚使用页面的页码范围对象。 更多... | |
| start_page_number = _fsdk.HeaderFooter_start_page_number | |
| 用于参数 page_range 中指定的第一页的虚拟页码。 这可以是任何数字,甚至与指定页面的实际页码不同。 更多... | |
| text_color = _fsdk.HeaderFooter_text_color | |
| 用于页眉页脚内容的文本颜色。 | |
| text_size = _fsdk.HeaderFooter_text_size | |
| 页眉页脚内容的文本大小。 | |
This class represents properties and data for a header-footer.
| def FoxitPDFSDKPython3.HeaderFooter.HeaderFooter | ( | font, | |
| text_size, | |||
| text_color, | |||
| page_range, | |||
| page_margin, | |||
| has_text_shrinked, | |||
| has_fixedsize_for_print, | |||
| start_page_number, | |||
| content, | |||
| is_to_embed_font, | |||
| is_underline | |||
| ) |
Constructor, with parameters.
| [in] | font | A valid font object used for header-footer content. Please refer to comment of font of current object. |
| [in] | text_size | Text size of header-footer content. |
| [in] | text_color | Text color used for header-footer content. |
| [in] | page_range | A page number range object which specifies pages where current header-footer is used. Please refer to comment of page_range of current object. |
| [in] | page_margin | Page margin which specifies the location for header-footer content. Please refer to comment of page_margin of current object. |
| [in] | has_text_shrinked | A boolean value that decides whether to shrink text or not. |
| [in] | has_fixedsize_for_print | A boolean value that decides whether to use fixed size for print or not. |
| [in] | start_page_number | A virtual page number used for the first page specified in parameter page_range. This can be any number, even different from the actual page number of the specified page. If this value is less than 1, Foxit PDF SDK will use 1 for this value when current header-footer object is used in a PDF document. |
| [in] | content | Header-footer content. |
| [in] | is_to_embed_font | A boolean value that decides whether to embed font or not. |
| [in] | is_underline | A boolean value that decides whether to underline text or not. |
| def FoxitPDFSDKPython3.HeaderFooter.HeaderFooter | ( | other | ) |
用另一个页眉页脚对象的构造函数。
| [in] | other | 另一个页眉页脚对象。 |
| def FoxitPDFSDKPython3.HeaderFooter.Set | ( | font, | |
| text_size, | |||
| text_color, | |||
| page_range, | |||
| page_margin, | |||
| has_text_shrinked, | |||
| has_fixedsize_for_print, | |||
| start_page_number, | |||
| content, | |||
| is_to_embed_font, | |||
| is_underline | |||
| ) |
设置值。
| [in] | font | 期望用于页眉页脚内容的有效字体对象。 请参阅当前对象的 font 注释。 |
| [in] | text_size | 页眉页脚内容的文本大小。 |
| [in] | text_color | 用于页眉页脚内容的文本颜色。 |
| [in] | page_range | 指定当前页眉页脚使用页面的页码范围对象。 请参阅当前对象的 page_range 注释。 |
| [in] | page_margin | 指定页眉页脚内容位置的页边距。 请参阅当前对象的 page_margin 注释。 |
| [in] | has_text_shrinked | 决定是否缩小文本的布尔值。 |
| [in] | has_fixedsize_for_print | 决定是否为打印使用固定大小的布尔值。 |
| [in] | start_page_number | 用于参数 page_range 中指定的第一页的虚拟页码。 这可以是任何数字,甚至与指定页面的实际页码不同。 如果此值小于 1,当当前页眉页脚对象在 PDF 文档中使用时,Foxit PDF SDK 将对此值使用 1。 |
| [in] | content | 页眉页脚内容。 |
| [in] | is_to_embed_font | 决定是否嵌入字体的布尔值。 |
| [in] | is_underline | 决定是否给文本加下划线的布尔值。 |
|
static |
期望用于页眉页脚内容的有效字体对象。
|
static |
指定页眉页脚内容位置的页边距。 如果用户未设置边距值,Foxit PDF SDK 将使用定义为 (72.0, 36.0, 72.0, 36.0) 的边距作为默认值。
左边距用于指定左页眉或页脚内容开始的位置。
右边距用于指定右页眉或页脚内容结束的位置。
下边距用于指定任何页脚内容放置的顶部位置。如果下边距不大于 0,页脚内容将不可见。
上边距用于指定任何页眉内容放置的底部位置。如果上边距不大于 0,页眉内容将不可见。
|
static |
指定当前页眉页脚使用页面的页码范围对象。
此范围中表示的所有值应从 1 开始且不超过使用当前页眉页脚对象的 PDF 文档的页数。
|
static |
用于参数 page_range 中指定的第一页的虚拟页码。 这可以是任何数字,甚至与指定页面的实际页码不同。